/*
 * @Description:
 * @Version: 1.0
 * @Autor: laikt
 * @Date: 2020-12-30 10:43:50
 * @LastEditors: laikt
 * @LastEditTime: 2021-01-07 11:06:49
 */
// Element
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './element-variables.scss'

// flex 布局库
import 'flex.css'
// 组件
import '@/components'
// 过滤器
import '@/filters'

// 功能插件
import pluginApi from '@/plugin/api'
import pluginEnv from '@/plugin/env'
import pluginLodash from '@/plugin/lodash'
import pluginOpen from '@/plugin/open'
import pluginPermission from '@/plugin/permission'
export default {
    install(Vue) {
        // 设置为 false 以阻止 vue 在启动时生成生产提示
        // https://cn.vuejs.org/v2/api/#productionTip
        Vue.config.productionTip = false
        Vue.use(ElementUI, {
            size: 'mini'
        })
        // 插件
        Vue.use(pluginApi)
        Vue.use(pluginEnv)
        Vue.use(pluginLodash)
        Vue.use(pluginOpen)
        Vue.use(pluginPermission)
    }
}
